package csel.model.skills;

import csel.model.entity.Character;

public abstract class Skill implements java.io.Serializable
{
	private static final long serialVersionUID = 5L;

	private String name;
	private String description;
	private int pointsAllocated;
	private Character owner;
	
	public Skill(Character owner)
	{
		this.owner = owner;
	}
	public String getName()
	{
		return(name);
	}
	public Character getOwner()
	{
		return(owner);
	}
	public String getDescription()
	{
		return(description);
	}
	public int getPointsAllocated()
	{
		return(pointsAllocated);
	}
	public void allocatePoints(int points)
	{
		pointsAllocated += points;
	}
	protected void setAllocatedPoints(int points)
	{
		pointsAllocated = points;
	}
	protected void setName(String name)
	{
		this.name = name;
	}
	protected void setDescription(String description)
	{
		this.description = description;
	}
}
